<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//ES' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>

<html xmlns='http://www.w3.org/1999/xhtml'
      xmlns:p='http://primefaces.org/ui'
      xmlns:f='http://java.sun.com/jsf/core'
      xmlns:h='http://java.sun.com/jsf/html'>

<h:head><title>Savanti</title>

  <meta name='apple-mobile-web-app-capable' content='yes'/>

  <meta name='apple-mobile-web-app-status-bar-style' content='black'/>


  <link rel='icon'             href='#{request.contextPath}/resources/icon.png'/>

  <link rel='shortcut icon'    href='#{request.contextPath}/resources/icon.ico'/>

  <link rel='apple-touch-icon' href='#{request.contextPath}/resources/icono.png'/>


  <style type='text/css'>

  .input { border-top:none; border-left:none; border-right:none; padding:10px; margin:0; font-weight:bold; background:#fffeec }

  .button { border-top:none; border-left:none; border-right:none; padding:5px; margin:4px; width:320px}

  body { font-family: Tahoma, Trebuchet MS, sans-serif; font-size:0.65em }

  </style><script type='text/javascript'>

  function logon() {

  if(getParamUrl('usr') != null &amp;&amp; getParamUrl('psd') != null)

  document.getElementById('form:start').click(); }

  </script>

</h:head>

<h:body onload='logon()'>

<h:form id='form'><p:growl id='msg'/><br/>

<div align='center'><h:panelGrid columns='1' cellspacing='4' cellpadding='4'>

  <h:graphicImage value='../resources/150-Logo.png' style='margin:4px'/>


  <p:watermark for='sociedad' value='Sociedad'/>

  <p:watermark for='usuario' value='Usuario'/>

  <p:watermark for='password' value='Password'/>


  <h:panelGrid columns='3' cellspacing='0' cellpadding='4'>

  <p:inputText id='sociedad' value='#{coreBean.sociedad.id}' style='width:55px' styleClass='input'/>

  <p:inputText id='usuario' value='#{coreBean.username}' style='width:95px' styleClass='input'/>

  <p:password id='password' value='#{coreBean.password}' action='#{coreBean.openSession}' style='width:95px' styleClass='input'/>

  </h:panelGrid><br/>


  <p:commandButton id='start' value='Ingresar' action='#{coreBean.openSession}' styleClass='button' update='msg' process='@form'>

  <f:param name='usr' value="#{param['usr']}"/>

  <f:param name='psd' value="#{param['psd']}"/>

  <f:param name='exp' value="#{param['exp']}"/>

  </p:commandButton><br/><br/><br/>

</h:panelGrid></div>

</h:form>

</h:body>

</html>